﻿using blackhouse.Translator.Business;
using blackhouse.WebNemo.Business;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace blackhouse.WebNemo.Translator {
    public class WebNemoTranslatorManager : ITranslatorResourceManager {

        public ITranslatorResource[] GetResources() {
            return Factory.Instance().GetGroups().Where(g => g.EnableTranslate).OrderBy(g => g.Name).Select(g => new WebNemoTranslatorResource(g)).ToArray();
        }

    }
}
